<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        #box {
            width: 300px;
            height: 450px;
            background-color: #f5f5f5;
            padding: 10px;
            margin: 100px auto;
        }

        .wz1 {
            height: 40px;
            line-height: 40px;
            font-size: 20px;
            font-weight: bold;
        }

        .nei {
            width: 290px;
            height: 400px;
            border-radius: 10px;
            background-color: white;
            margin-left: 5px;
        }

        .wz2 {
            width: 290px;
            height: 40px;
            font-size: 16px;
            font-weight: bold;
            line-height: 40px;
            padding: 5px;
        }

        .hang {
            width: 290px;
            height: 100px;
            margin-top: 5px;

        }

        .tu {
            float: left;
        }

        .zi {
            float: left;
            margin-left: 5px;
        }

        .an {
            float: right;
            margin-right: 10px;
        }
        .s1{
            font-weight: bold;
        }
        .s2{
            color: red;
            font-size: 14px;
        }
        .s3{
            color: red;
            font-size: 16px;
        }
        .s4{
            color: #eee;
            font-size: 14px;
        }
        .an{
            margin-top: 20px;
        }
        button{
            width: 60px;
            height: 30px;
            background-color: #ff4f34;
            border: 0;
            border-radius: 15px;
            color: white;
        }
    </style>

</head>

<body>
    <div id="box">
        <div class="wenzi">
            <div class="wz1">
                <饿了么 </div>
                    <div class="nei">
                        <div class="wz2">热门单品</div>
                        <div class="hang" v-for="(item,index) in list" v-bind:key="index">
                            <div class="tu">
                                <img v-bind:src="item.pic" alt="">
                            </div>
                            <div class="zi">
                                <div class="s1">{{item.name}}</div>
                                <div class="s2">{{item.desc}}</div>
                                <div class="s3">{{item.jia}}</div>
                                <div class="s4">{{item.dian}}</div>
                            </div>
                            <div class="an">
                                <button>立即兑</button>
                            </div>
                        </div>
                    </div>
            </div>
        </div>
    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el: '#box',
        data: {
            list: [
                { id: 1, pic: 'images/day01-vuejs作业_03.gif', name: '脐槽3斤快递到家', desc: '兑换后入手恰8.9元', jia: '10', dian: '适用门店>', status: 1 },
                { id: 1, pic: 'images/day01-vuejs作业_06.gif', name: '耙耙相2斤快递到家', desc: '兑换后入手价9.9元', jia: '30', dian: '适用门店>', status: 1 },
                { id: 1, pic: 'images/day01-vuejs作业_08.gif', name: '水果捞350g', desc: '兑换后入手价6.9元', jia: '60', dian: '适用门店>', status: 1 },


            ]
        }

    })
</script>